package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.MemeberItemMapper;
import com.whq.entity.MemeberItem;
import com.whq.service.MemeberItemService;

@Service(value = "tdMemeberItemService")
public class MemeberItemServiceImpl implements MemeberItemService {

    @Autowired
    private MemeberItemMapper<MemeberItem>tdMemeberItemMapper;
    
    @Override
    public Integer insertSelective(MemeberItem tdMemeberItem) throws Exception {
           return this.tdMemeberItemMapper.insertSelective(tdMemeberItem);
        }

    @Override
    public Integer insertBatch(List<MemeberItem> tdMemeberItem) throws Exception {
           return this.tdMemeberItemMapper.insertBatch(tdMemeberItem) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tdMemeberItemMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tdMemeberItemMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(MemeberItem tdMemeberItem) {
           return this.tdMemeberItemMapper.updateByPrimaryKeySelective(tdMemeberItem);
    }

    @Override
    public MemeberItem findById(Object id) {
           return (MemeberItem) this.tdMemeberItemMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<MemeberItem> selectByCondition(MemeberItem tdMemeberItem) {
           return (List<MemeberItem>) this.tdMemeberItemMapper.selectByCondition(tdMemeberItem);
    }

    @Override
    public Integer selectCountByCondition(MemeberItem tdMemeberItem) {
           return  this.tdMemeberItemMapper.selectCountByCondition(tdMemeberItem);
    }

}
